package DesignPattern.Behavior.Mediator;

public class Tenant extends Person {

    public Tenant(String name, Mediator mediator) {
        super(name, mediator);
    }

    public void constract(String msg) {
        mediator.constract(msg, this);
    }

    public void getMessage(String msg) {
        System.out.println("租房者" + name + "获取到的信息是：" + msg);
    }
}
